package com.tms.springboot.service;

import com.github.pagehelper.PageInfo;
import com.tms.springboot.aggregation.pojo.PdAuthUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tms.springboot.aggregation.pojo.PdDriverJob;
import com.tms.springboot.aggregation.pojo.PdTaskTransport;
import com.tms.springboot.search.TransportSearch;
import com.tms.springboot.view.DriverMian;
import com.tms.springboot.view.PageVo;
import com.tms.springboot.view.TransportPassage;
import com.tms.springboot.view.TransportView;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cjj
 * @since 2023-06-14
 */
public interface PdAuthUserService extends IService<PdAuthUser> {

    //快递员管理分页查询
    PageInfo pdauthuserpagequerylk(PageVo<PdAuthUser> pageVo);

    /**
     *查询司机端个人信息
     * @param id
     * @return
     * @throws Exception
     */
    DriverMian selectMainService (String id) throws Exception;

    /**
     * 查询历史记录
     * @param transportSearch
     * @return
     * @throws Exception
     */
    List<PdTaskTransport> selectHistoryService (TransportSearch transportSearch) throws Exception;

    /**
     *根据运输任务编号查询运输任务详细信息
     * @param id
     * @return
     * @throws Exception
     */
    TransportView transportfindByIdService (String id) throws Exception;

    /**
     *查询司机作业单为待提货货物
     * @param id
     * @return
     * @throws Exception
     */
    List<PdDriverJob> selectDrverJobStatusService (String id) throws Exception;

    /**
     *查询司机在途
     * @param id
     * @return
     * @throws Exception
     */
    TransportPassage selectPassageService (String id) throws Exception;

    /**
     *查询司机作业单为运输中
     * @param id
     * @return
     * @throws Exception
     */
    List<PdDriverJob> selectDeliveryService (String id) throws Exception;
}
